package com.example.modeldemo.baseenum;

import lombok.Getter;

/**
 * 返回信息枚举
 * @author lc
 */
@Getter
public enum ResultEnum {
    /**
     * 返回成功时
     */
    SUCCESS(0,"成功"),
    /**
     * 返回失败时
     */
    ERROR(-1,"失败");

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 信息
     */
    private final String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
